from ProxyDeTwitterReal import *
from ProxyDeTwitterStub import *

class ProxyDeTwitter:
	testMode = False
	testTweets = set()
	
	def __init__(self):
		if ProxyDeTwitter.testMode:
			self._obj = ProxyDeTwitterStub(ProxyDeTwitter.testTweets)
		else:
			self._obj = ProxyDeTwitterReal()
		
	def __getattr__(self, name):
		return getattr(self._obj, name)
